package com.ruoyi.smartcity.traffic.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 交通流量对象 traffic_flow
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public class TrafficFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 路名 */
    @Excel(name = "路名")
    private String roadName;

    /** 行驶长度（米） */
    @Excel(name = "行驶长度", readConverterExp = "米=")
    private BigDecimal travelLength;

    /** 行驶速度（公里/小时） */
    @Excel(name = "行驶速度", readConverterExp = "公=里/小时")
    private BigDecimal travelSpeed;

    /** 时间片（每5分钟一次） */
    @Excel(name = "时间片", readConverterExp = "每=5分钟一次")
    private String timeSlice;

    /** 街道ID */
    @Excel(name = "街道ID")
    private Long streetId;

    /** 街道名称 */
    @Excel(name = "街道名称")
    private String streetName;

    /** 总时间（秒） */
    @Excel(name = "总时间", readConverterExp = "秒=")
    private Long totalTime;

    /** 流量（车辆数） */
    @Excel(name = "流量", readConverterExp = "车=辆数")
    private Long trafficVolume;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoadName(String roadName) 
    {
        this.roadName = roadName;
    }

    public String getRoadName() 
    {
        return roadName;
    }
    public void setTravelLength(BigDecimal travelLength) 
    {
        this.travelLength = travelLength;
    }

    public BigDecimal getTravelLength() 
    {
        return travelLength;
    }
    public void setTravelSpeed(BigDecimal travelSpeed) 
    {
        this.travelSpeed = travelSpeed;
    }

    public BigDecimal getTravelSpeed() 
    {
        return travelSpeed;
    }
    public void setTimeSlice(String timeSlice)
    {
        this.timeSlice = timeSlice;
    }

    public String getTimeSlice()
    {
        return timeSlice;
    }
    public void setStreetId(Long streetId) 
    {
        this.streetId = streetId;
    }

    public Long getStreetId() 
    {
        return streetId;
    }
    public void setStreetName(String streetName) 
    {
        this.streetName = streetName;
    }

    public String getStreetName() 
    {
        return streetName;
    }
    public void setTotalTime(Long totalTime) 
    {
        this.totalTime = totalTime;
    }

    public Long getTotalTime() 
    {
        return totalTime;
    }
    public void setTrafficVolume(Long trafficVolume) 
    {
        this.trafficVolume = trafficVolume;
    }

    public Long getTrafficVolume() 
    {
        return trafficVolume;
    }
    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roadName", getRoadName())
            .append("travelLength", getTravelLength())
            .append("travelSpeed", getTravelSpeed())
            .append("timeSlice", getTimeSlice())
            .append("streetId", getStreetId())
            .append("streetName", getStreetName())
            .append("totalTime", getTotalTime())
            .append("trafficVolume", getTrafficVolume())
            .append("collectionTime", getCollectionTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
